identify position of na values in r